#loot_table: 显示所用的loot_table物品，若不存在buy_loot_table则使用此物品作为购买获得的物品
#buy_loot_table: 购买获得的物品
#inventory: 库存数量
#event.buySuccessPlayerRun: 购买成功后玩家执行的命令
#event.buySuccessReplaceTo: 购买成功后替换的商品(与上级目录格式相同)
#buy_condition: 购买条件，存在时必须存在内部所有参数 
#buy_condition.function_path: if function时的非Void函数路径
#buy_condition.tips: 失败提示

data remove storage vs:system shopContents

#曲奇
data modify storage vs:system shopContents append value {loot_table:"vs:cookie"}

#牛排
data modify storage vs:system shopContents append value {loot_table:"vs:cooked_beef"}

#地基方块
data modify storage vs:system shopContents append value {loot_table:"vs:base_block",event:{buySuccessPlayerRun:"function vs:item/base_block/buy"}}

#地基方块拆除器
data modify storage vs:system shopContents append value {loot_table:"vs:base_block_breaker"}

#地基方块拆除器
data modify storage vs:system shopContents append value {loot_table:"vs:light_pickaxe3000"}

#电池
data modify storage vs:system shopContents append value {loot_table:"vs:battery",item_modifier:"{function:set_damage,damage:0.0}"}

#装甲超频模块
data modify storage vs:system shopContents append value {loot_table:"vs:armor_overclock_module"}

#便携式充电场生成器
data modify storage vs:system shopContents append value {loot_table:"vs:portable_charge_area"}

#简易传送装置
data modify storage vs:system shopContents append value {loot_table:"vs:teleport_device"}

#大短路
data modify storage vs:system shopContents append value {loot_table:"vs:circuit_breaker"}

#频段干扰器
data modify storage vs:system shopContents append value {loot_table:"vs:frequency_band_jammer"}

#频段篡改器
data modify storage vs:system shopContents append value {loot_table:"vs:frequency_band_tamperer"}

#调频器
data modify storage vs:system shopContents append value {loot_table:"vs:frequency_modulator"}

#磁暴发生器
data modify storage vs:system shopContents append value {loot_table:"vs:geomagnetic_storm_generator"}

#potato
execute if predicate {condition:"random_chance",chance:0.01} run data modify storage vs:system shopContents append value {loot_table:"vs:potato",buy_condition:{function_path:"vs:item/potato/buy_condition",tips:{"text":"你没有土豆，无法购买！","color":"red"}}}

#屏障破坏者
data modify storage vs:system shopContents append value {loot_table:"vs:stream_barrier_breaker"}

#屏障维修工具
data modify storage vs:system shopContents append value {loot_table:"vs:streambarrier_spawner_repair_device"}

#虚空暗流干扰器
data modify storage vs:system shopContents append value {loot_table:"vs:void_jammer"}

#虚空采矿车升级
data modify storage vs:system shopContents append value {loot_table:"vs:void_minecart_upgrade",inventory:3,event:{buySuccessPlayerRun:"function vs:item/void_minecart_upgrade/upgrade"}}

#守卫塔-E
data modify storage vs:system shopContents append value {loot_table:"vs:guard_tower-e"}

#守卫塔-L
data modify storage vs:system shopContents append value {loot_table:"vs:guard_tower-l"}

#月饼
data modify storage vs:system shopContents append value {loot_table:"vs:moon_cake"}
